package com.mdd.common.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mdd.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;


@Data
@EqualsAndHashCode(callSuper = true)
@TableName("order_deduction_records")
@ApiModel("还款计划减免记录实体")
public class DeductionRecords extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Long id;

    @ApiModelProperty(value = "还款计划编码")
    private String repaymentPlanNo;

    @ApiModelProperty(value = "原租金")
    private BigDecimal oldRent;

    @ApiModelProperty(value = "现租金")
    private BigDecimal newRent;

    @ApiModelProperty(value = "原违约金")
    private BigDecimal oldLiquidatedDamages;

    @ApiModelProperty(value = "现违约金")
    private BigDecimal newLiquidatedDamages;

    @ApiModelProperty(value = "减免记录编码")
    private String deductionNo;
}
